package hu.bme.aut.consulttime.server.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
@Entity
public class Student extends User implements Serializable {
	
	private static final long serialVersionUID = 6L;

	// Reference to Team
	@OneToMany(mappedBy = "studentTeamMembershipId.student")
	private List <StudentTeamMembership> teamMemberships = new ArrayList<StudentTeamMembership>();

	// Reference to ToDo
	@OneToMany(mappedBy = "student")
	private List<ToDo> todos = new ArrayList<ToDo>();

	public List<StudentTeamMembership> getTeamMemberships() {
		return teamMemberships;
	}

	public void setTeamMemberships(List<StudentTeamMembership> teamMemberships) {
		this.teamMemberships = teamMemberships;
	}

	public List<ToDo> getTodos() {
		return todos;
	}

	public void setTodos(List<ToDo> todos) {
		this.todos = todos;
	}

}
